Small typing errors are so common, and yet undocumented (why are common mistakes not documented?), that I thought I'd list several that have tripped me up on innumerable occasions. After all, why reinvent the car crash?
Consider a source file `pics.mf' that contains `mag=1200/1000;', so it is automatically scaled by 1.2 (ie, by magstep 1). If the target printer has 300 dpi, then a 360 dpi GF font is wanted.
Here is the gist of what happens for various typing errors, when using emTEX's `mf186' on a 286 PC to process `pics.mf'.
mf186
will keep prompting for arguments:
**
We can type the contents of the command line here; for example, I can now type `pics'. In fact, even if you use the command line, the .log (`transcript') file shows echoing its interpretation of the command line to a ** prompt.
mf186 pics
proof mode:
! Value is too large (5184)
No TFM is produced, and the GF file has resolution 3122 dpi. (3121.72 dpi, to be precise.)
mf186 mode=localfont; input pics
misinterpretation:
! I can't find file `modes=localfont.mf'.
So, `modes' needs that backslash, otherwise mf thinks it's the start of a source font's filename. Backslash (` \') and ampersand (`&') are escapes from this standard interpretation by of the first argument. (Ampersand is in fact only a temporary escape, as resumes the mf filename prompting attitude as soon as a base is read.)
mf186 \mode=localfont input pics
weird effect:
>> unknown string mode_name1.2 ! Not a string <to be read again> ; mode_setup-> ...ode)else:mode_name[mode]fi; l.6 mode_setup ;
Wow! What a difference a semicolon can make!
mf186 \mode=localfont pics
almost nothing happens:
** \mode=localfont pics *
There's the echo I mentioned. From the lack of activity, pics evidently needs to be `input'.
mf186 \mode=localfont; pics
Same as 5.
So, yes, when the mode is specified, we need `input' before `pics'.
mf186 &plain \mode=localfont; input pics
Works.
Just as without the `&plain', it writes a GF file, `pics.360gf', which is correct. (MS-DOS truncates the name to `pics.360'.) So, redundancy seems okay. Does it waste time, though?